import { Controller } from 'egg';
import * as dayjs from 'dayjs';

export default class HomeController extends Controller {
  public async index() {
    const { ctx } = this;
    const time = Date.now();
    const s = dayjs(time).format('YYYY-MM-DD HH:mm:ss');
    console.log(s);
    ctx.body = {
      name: '123',
    };
  }
}
